#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTranslator qtTranslator;
    QString locale = QLocale::system().name();

    qtTranslator.load("qt_" + locale,
            QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    a.installTranslator(&qtTranslator);

    QTranslator translator;
    // Get the full path, relative path doesn't really work
    QString AppPath = QApplication::applicationDirPath ();
    translator.load(QString("BackupConfig_") + locale, AppPath + QString("/Translations"));
    a.installTranslator(&translator);

    MainWindow w;
    w.show();
    
    return a.exec();
}
